package com.spring.agent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;

public class LangChainAiInvoke {
    public static void main(String[] args) {
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey("sk-5aae33ec9d0641a59af373856d4ef863")
                .modelName("qwen-max")
                .build();
        String result = qwenChatModel.chat("hello world");
        System.out.println(result);
    }
}
